package com.zhumengquan.wozhi.controller;

import com.zhumengquan.wozhi.service.DeleteUserByIdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class DeleteUserByIdController {
    @Autowired
    private DeleteUserByIdService deleteUserByIdService;

    @RequestMapping("/deleteuserbyid")
    @ResponseBody
    public int deleteUserById(@RequestParam(value = "id",required = true) Integer id){
        int result = deleteUserByIdService.deleteUser(id);
        return result;
    }


}
